var router=require('./../model/router');
var http=require('http');
var ejs=require('ejs');
var MongoClient=require('mongodb').MongoClient;

var mongodbUrl='mongodb://127.0.0.1:27017/itying';

http.createServer(router).listen(8100);

router.get('/add',function(req,res){
    MongoClient.connect(mongodbUrl ,function(err,db){
        if(err) throw err;
        db.collection('user').insertOne({
            
        },function(error,result){

        });
    })
})